import { sendRequest } from '@/http';

/**
 * 获取服务分类列表
 */
export function queryServiceCateList(params: any) {
  return sendRequest({
    url: `/admin/homecare/service/cate/queryServiceCateList`,
    method: 'get',
    params,
  });
}

export function queryServiceCateDetail(params: any) {
  return sendRequest({
    url: `/admin/homecare/service/cate/queryServiceCateDetail`,
    method: 'get',
    params,
  });
}

// /elcapi/admin/homecare/service/cate/createServiceCate
export function createServiceCate(params: any) {
  return sendRequest({
    url: `/admin/homecare/service/cate/createServiceCate`,
    method: 'post',
    data: params,
  });
}

// /elcapi/admin/homecare/service/cate/updateServiceCate

export function updateServiceCate(params: any) {
  return sendRequest({
    url: `/admin/homecare/service/cate/updateServiceCate`,
    method: 'post',
    data: params,
  });
}

// /elcapi/admin/homecare/service/cate/deleteServiceCate
export function deleteServiceCate(params: any) {
  return sendRequest({
    url: `/admin/homecare/service/cate/deleteServiceCate`,
    method: 'post',
    data: params,
  });
}
